rid (oneself) of

Translations
избавиться от
She managed to rid herself of bad habits.
Ей удалось избавиться от вредных привычек.